#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2019/5/13 17:43
# @USER    : Connor
# @File    : PalindromeNumber.py
# @Software: PyCharm
# @Version  : Python-3.6
# @TASK:


class Solution:
    def isPalindrome(self, x: int) -> bool:
        """
        Determine whether an integer is a palindrome.
        An integer is a palindrome when it reads the same backward as forward.

        :param x: integer
        :return: bool

        """
        if str(x)[::-1] == str(x):
            return True
        else:
            return False


if __name__ == '__main__':
    S = Solution()
    sample = -121
    print(S.isPalindrome(sample))
    print('done')
